#!/usr/bin/python
# -*- coding: UTF-8 -*-
from datetime import datetime,timedelta

class FileInf:
   id = ""
   pid = ""
   pidRoot = ""
   fdTask =False
   fdChild=False
   uid = "0"
   nameLoc = ""
   nameSvr = ""
   pathLoc = ""
   pathSvr = ""
   pathRel = ""
   md5 = ""
   lenLoc = 0
   sizeLoc = "0byte"
   pos = 0
   lenSvr = 0
   perSvr = "0%"
   complete = False
   time = datetime.now()
   deleted = False
   scan = False
   lenLocSec = 0
   # 是否加密存储
   encrypt = False
   # 加密算法：sm4,aes
   encryptAgo = ""
   # 原始块大小
   blockSize = 0
   blockSizeSec = 0
   # 块压缩大小
   blockSizeCpr = 0
   object_id = ""
   object_key = ""
   blockIndex = 1
   blockOffset = 0
   blockOffsetCry = 0
   # 块压缩方式
   blockCprType = ""
   blockSize = 0
   # 块加密大小
   blockSizeSec = 0
   # 块压缩大小
   blockSizeCpr = 0
   blockCount = 0